package com.mygame.components

import com.almasb.fxgl.entity.component.Component
import com.mygame.manager.TimerManager

abstract class TimerComponent : Component() {
    override fun onAdded() {
        TimerManager.add(this)
        super.onAdded()
    }

    override fun onRemoved() {
        TimerManager.remove(this)
        super.onRemoved()
    }

    abstract fun update()
}